package com.checkbox.widgetset.client.ui;

import com.google.gwt.dom.client.Document;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Widget;

import com.vaadin.client.VTooltip;

public class VSpan extends Widget {
  public VSpan() {
    super();
    setElement(Document.get().createDivElement());
    sinkEvents(VTooltip.TOOLTIP_EVENTS);
  }

  @Override
  public void onBrowserEvent(Event event) {
    super.onBrowserEvent(event);
  }

  public void setText(String text) {
    this.getElement().setInnerHTML(text);
  }

  @Override
  public void onAttach() {
    super.onAttach();
  }
}
